<div>
    <div id="bind_other-html">

        <div class="reg-box">
            <div class="titles fiex">
                <div class="black"><a href="javascript:window.history.go(-1);" ><svg class="g2" ><use xlink:href="#f_black"></use></svg></a></div>
                <div class="fiex1 f-40"><span data-l="1143"></span></div></div>
            <div class="bank80"></div>

            <div class="bank20"></div>
            <form id="user_reg">
                <div class="login-new f-28 reg-new">				
                    <div class="line-ddd"> </div>

                    <div class="item cf fiex">
                        <div class="fiex1 name"><span data-l="1077"></span></div>
                        <div class="fiex2 fiex">
                            <input class="f-28 required" name="username" type="number"  placeholder="" data-valid="isNonEmpty"  data-p="1070" data-e="1070" />
                        </div>					
                    </div>
                    <div class="item cf fiex">
                        <div class="fiex1 name"><span data-l="1081"></span></div>
                        <div class="fiex2"><input class="f-28 required" name="password" type="password" id="pwd"  placeholder="" data-valid="isNonEmpty"  data-p="1072" data-e="1072" /></div>
                    </div>
                    <div class="errortip center pad-10 red"></div>
                    <div class="bank40"></div>
                    <div class="button mag-t-40 center">
                        <a href="javascript:;" class="bon-green f-30" id="submit-reg3" style="width: 60%;"><span data-l="1086"></span></a> </div>
                    <div class="bank20"></div>
                    <input class="f-28" type="hidden"  name="language" />

                </div>
            </form>
        </div>



        <script>
            //当前页面禁止拖动
            $("input[name=language]").val(getCookie("language"))

            //验证
            $('.reg-new').validate({
                onFocus: function () {
                    this.parent().addClass('active');
                    return false;
                },
                onBlur: function () {
                    var $parent = this.parent();
                    var _status = parseInt(this.attr('data-status'));
                    $parent.removeClass('active');
                    if (!_status) {
                        $parent.addClass('error');
                    }
                    return false;
                },
                onBlurpass: true, //blur检测
                selectID: $(".errortip")//指定弹出位置
            });

            //绑定已有帐号登录
            var sync_login_info = getCookie("sync_login_info")?JSON.parse(getCookie("sync_login_info")):{};
            $("#submit-reg3").on("click", function () {
                if ($(".reg-new").validate('submitValidate')) {
                    var username = $("input[name='username']").val();
                    var password = $("input[name='password']").val();
                    sync_login_info.username = username;
                    sync_login_info.password = password;
                    bef_ajax(jsonpath + "put_sync_bind_member", sync_login_info, function (e) {
                        if (e.status == 1) {
                            //登录成功
                            $.each(e.result, function (v, i) {
                                setCookie(v, i, 365);
                            })
                            Q.go("main-html");
                        } else {
                            $.toast(e.msg, "text");
                        }

                    });
                }
            })


            //
        </script>


    </div>

</div>